package com.aron;

import com.utils.Audio;

import java.awt.*;
import java.util.concurrent.TimeUnit;

/**
 * @version v1.0
 * @ProjectName: studycoding
 * @ClassName: Main
 * @Description: TODO(一句话描述该类的功能)
 * @Author: Leo
 * @Date: 2020/5/31 17:15
 */
public class Main {
    public static void main(String[] args){

        TankFrame.getInstance().setVisible(true);
        new Thread(()->new Audio("audio/start.wav").play()).start();

        for (;;){
            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            TankFrame.getInstance().repaint();
        }

    }
}
